package com.zhiyou.springcloud.serviceImpl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zhiyou.springcloud.bean.educationtype;
import com.zhiyou.springcloud.bean.safeeducation;
import com.zhiyou.springcloud.dao.educationtypeMapper;
import com.zhiyou.springcloud.dao.safeeducationMapper;
import com.zhiyou.springcloud.service.SafeEducationService;
@Service
public class SafeEducationServiceImpl implements SafeEducationService {

	@Autowired
	safeeducationMapper safeeducationMapper;
	
	@Autowired
	educationtypeMapper educationtypeMapper;

	@Override
	public List<educationtype> getAllTypes() {
		return educationtypeMapper.getAllTypes();
	}

	@Override
	public List<safeeducation> getSafeEducationsByTid(Integer etid) {
		return safeeducationMapper.getSafeEducationsByConditions(etid);
	}

	@Override
	public safeeducation getSafeDetailsByEid(Integer eid) {
		return safeeducationMapper.getSafeDetailsByEid(eid);
	}

	@Override
	public int addReadno(Integer eid, Integer readno) {
		return safeeducationMapper.addReadno(eid, readno);
	}

}
